package com.personal.persistence.sqlSession;

import java.util.List;

public interface SqlSession {
    <E> List<E> findAll(String statementId, Object... params) throws Exception;

    <T> T findByCondition(String statementId, Object... params) throws Exception;

    /**
     * 生产Dao接口的对象
     * @param mapperClass Dao接口
     */
    <T> T getMapper(Class<?> mapperClass);
}
